﻿using System.Collections.Generic;
using ML.Entity;

namespace ML.IBusiness
{
    public interface IPlatFormCategoryBusiness
    {
        /// <summary>
        /// 根据查询条件查询用户信息
        /// </summary>
        /// <param name="pfcSearch">用户查询条件</param>
        /// <returns></returns>
        BaseResult<Pager<PlatformCategoryEntity>> List(PlatFormCategorySearch pfcSearch);

        /// <summary>
        /// 获取所有可用的未删除的平台分类列表
        /// </summary>
        /// <returns></returns>
        BaseResult<IEnumerable<PlatformCategoryEntity>> GetAllEnableList();

        /// <summary>
        /// 查询平台分类未删除未禁用的所有数据
        /// </summary>
        /// <returns></returns>
        BaseResult<IEnumerable<DropDownList>> GetDropDownListList();

        /// <summary>
        /// 前端已经在使用此接口—查询所有可用的未删除的平台分类列表信息
        /// </summary>
        /// <param name="pagesize">每页显示多少条数据</param>
        /// <returns></returns>
        BaseResult<List<PlatFormCategoryResponse>> GetPageEnableList(int pagesize);

        /// <summary>
        /// 添加平台分类
        /// </summary>
        /// <param name="entity">平台分类实体</param>
        /// <returns></returns>
        BaseResult<bool> Add(PlatformCategoryEntity entity);

        /// <summary>
        /// 修改平台分类
        /// </summary>
        /// <param name="entity">平台分类实体</param>
        /// <returns></returns>
        BaseResult<bool> Update(PlatformCategoryEntity entity);

        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        BaseResult<bool> Delete(string id);
    }
}